import request from '@/utils/request'

// 接口套餐售卖列表
export function apiInterfaceGoodsSaleLists(params: any) {
    return request.get({ url: '/interface.interface_goods_sale/lists', params })
}

// 添加接口套餐售卖
export function apiInterfaceGoodsSaleAdd(params: any) {
    return request.post({ url: '/interface.interface_goods_sale/add', params })
}

// 编辑接口套餐售卖
export function apiInterfaceGoodsSaleEdit(params: any) {
    return request.post({ url: '/interface.interface_goods_sale/edit', params })
}

// 删除接口套餐售卖
export function apiInterfaceGoodsSaleDelete(params: any) {
    return request.post({ url: '/interface.interface_goods_sale/delete', params })
}

// 接口套餐售卖详情
export function apiInterfaceGoodsSaleDetail(params: any) {
    return request.get({ url: '/interface.interface_goods_sale/detail', params })
}

// 接口套餐状态
export function apiInterfaceGoodsSaleStatus(params: any) {
    return request.post({ url: '/interface.interface_goods_sale/updateStatus', params })
}

// 上架套餐列表
export function packageLists() {
    return request.get({ url: '/interface.interface_goods_sale/buyList' })
}

// 生成支付二维码
export function generateQRCode(params: any) {
    return request.post({ url: '/interface.interface_goods_sale/generateQRCode', params })
}

